package contactbook.service;

import contactbook.dao.AccountDAOInterface;
import contactbook.model.Account;

public interface AccountServiceInterface {
	
	public static String JNDI = "ContactBookEar/AccountService/remote";
	
	public Account login(String login, String password);
	public void logout();
	
	public Account create(Account account);
	public void delete();
	
	public Account getAccountById(int accountId);
	
	public boolean isLogged();
	
	public void update(Account account);
	
	/* Change DAO : for business layer tests */
	public void setDAO(AccountDAOInterface dao);
}
